<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div>
        <table   border="1" style="margin:auto">
            <tr>
                <th>报价id</th>
                <th>报价客户id</th>
                <th>报价产品id</th>
                <th>报价人</th>
                <th>报价时间</th>
                <th>其他信息</th>
                <th>操作</th>
            </tr>
            <tr th:each="offer : ${offerlist}">
                <td th:text="${offer.offerId}"></td>
                <td th:text="${offer.customerId}"></td>
                <td th:text="${offer.productId}"></td>
                <td th:text="${offer.offerMan}"></td>
                <td th:text="${offer.offerTime}"></td>
                <td th:text="${offer.otherInfo}"></td>
                <td>
                    <form action="offerupdate" method="post">
                        <input type="hidden" name="offerid" th:value="${offer.offerId}"><input
                            type="submit" class="but" value="修改">
                    </form>
                    <form action="deleteOffer" method="post">
                        <input type="hidden" name="offerid" th:value="${offer.offerId}"><input
                            type="submit" class="but" value="删除">
                    </form>
                </td>
            </tr>
        </table>
        <form action="offerinsert" method="post">
            <input type="submit" value="增加" style="margin-left: 715px">
        </form>
     </div>
</body>
</html>